<%@ page import="abc.Goods.Goods" %>
<%@ page import="abc.Tool.JdbcUtils" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh">
<%
    String sql1 = "select count(id) from goods";
    Long countGoods= JdbcUtils.select(sql1, Long.class);//获取商品总数
    String sql2 = "select count(id) from `user`";
    Long countUser= JdbcUtils.select(sql2, Long.class);//获取用户总数
%>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Java实训团队协作简单案例</title>
    <link rel="shortcut icon" href="assets/img/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="assets/vendors/font-awesome-4.7.0/css/font-awesome.min.css" />
    <link rel="stylesheet" href="assets/css/core.css" />
    <link rel="stylesheet" href="assets/css/index.css" />

    <link rel="stylesheet" href="assets/css/welcome.css" />
</head>

<body>

    <section class="container">
        <jsp:include page="/WEB-INF/tpl/abc/left.jsp" />
        <div class="main-right">
            <h3>欢迎您，张三 </h3>
            <div class="summary-container">
                <div class="summary-category">
                    <div class="summary-desc">
                        <span class="summary-title">分类总数</span>
                        <span class="summary-value">20</span>
                    </div>
                    <div class="summary-icon">
                        <i class="fa fa-star-o"></i>
                    </div>
                </div>
                <div class="summary-goods">
                    <div class="summary-desc">
                        <span class="summary-title">商品总数</span>
                        <span class="summary-value"><%=countGoods%></span>
                    </div>
                    <div class="summary-icon">
                        <i class="fa fa-bars"></i>
                    </div>
                </div>
                <div class="summary-user">
                    <div class="summary-desc">
                        <span class="summary-title">用户总数</span>
                        <span class="summary-value"><%=countUser%></span>
                    </div>
                    <div class="summary-icon">
                        <i class="fa fa-users"></i>
                    </div>
                </div>
            </div>
        </div>
    </section>
</body>

</html>